<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    {{info}}<hr>
    <h1 v-for="name in arr">{{name}}</h1>
    <table border="1">
        <caption>人物列表</caption>
        <tr>
            <th>名字</th><th>年龄</th><th>性别</th>
        </tr>
        <tr v-for="p in persons">
            <td>{{p.name}}</td><td>{{p.age}}</td><td>{{p.gender}}</td>
        </tr>
    </table>


</div>

<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            info:"循环遍历",
            arr:["张","王","李"],
            persons:[{name:"李洋",age:30,gender:"男"},
                     {name:"靓女",age:40,gender:"女"},
                     {name:"吊毛",age:50,gender:"男"}],

        }

    })
</script>

</body>
</html>